package com.unlcn.erp.hyc.interfaces.backend.enums;

/**
 * Created by zhiche024 on 2017/9/2.
 */
public enum CallHYCUrlTypeEnum {
    HYC_ORDERCODES(10,"获取订单号列表"),
    HYC_ORDERDETAILS(20,"获取订单详情"),
    HYC_WAYBILLS(30,"获取运单号列表"),
    HYC_WAYBILLDETAILS(40,"获取运单详情"),
    HYC_RECEIVABLECODES(50,"获取应收账单号列表"),
    HYC_RECEIVABLECODESDETAIL(60,"获取应收账单明細"),
    HYC_PAYCODES(70,"获取应付账单号列表"),
    HYC_PAYDETAIL(80,"获取应付账单明細"),
    HYC_MARKERSOFBULL(90,"检查账单是否到账"),
    HYC_PAYMENTAMOUNT(100,"将应付金额存入到运单"),
    HYC_CASHRECEIPTS(110,"现金收款标记")
    ;


    private final int value;
    private final String text;
    CallHYCUrlTypeEnum(int value,String text){
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }
    public static CallHYCUrlTypeEnum getByValue(int value){
        for(CallHYCUrlTypeEnum temp : CallHYCUrlTypeEnum.values()){
            if(temp.getValue() ==value){
                return temp;
            }
        }
        return null;
    }
}
